<template>
  <div class="container">
    <van-button type="primary" block @click="goToAdd">创建订单</van-button>
    <van-button type="primary" block @click="goToOrderList">订单列表</van-button>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router';
const router = useRouter();
const goToAdd = () => {
  router.push('/home/add');
};
const goToOrderList = () => {
  router.push('/home/list');
};
</script>
<style scoped lang="scss">
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 50px;
  padding: 20px;
}
</style>

